package com.wuda.bean;



import java.util.Date;


public class BorrowRecord {

	private Integer recordId;
	private Integer userId;
	private Integer bookId;

	/**
	 * 借阅日期
	 */
	private Date borrowDate;

	/**
	 * 归还日期
	 */
	private Date returnDate;

	/**
	 *  'borrowed', 'returned' 借阅状态， 默认为borrowed
	 */
	private String status;

	/**
	 * 用户对象
	 */
	private User user;

	/**
	 * 图书对象
	 */
	private Book book;

	public Integer getRecordId() {
		return recordId;
	}

	public void setRecordId(Integer recordId) {
		this.recordId = recordId;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getBookId() {
		return bookId;
	}

	public void setBookId(Integer bookId) {
		this.bookId = bookId;
	}

	public Date getBorrowDate() {
		return borrowDate;
	}

	public void setBorrowDate(Date borrowDate) {
		this.borrowDate = borrowDate;
	}

	public Date getReturnDate() {
		return returnDate;
	}

	public void setReturnDate(Date returnDate) {
		this.returnDate = returnDate;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Book getBook() {
		return book;
	}

	public void setBook(Book book) {
		this.book = book;
	}

	@Override
	public String toString() {
		return "BorrowRecord{" +
				"recordId=" + recordId +
				", userId=" + userId +
				", bookId=" + bookId +
				", borrowDate=" + borrowDate +
				", returnDate=" + returnDate +
				", status='" + status + '\'' +
				", user=" + user +
				", book=" + book +
				'}';
	}
}